﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Smartee.RichText
{
    public sealed class Footnote : Content
    {
        public bool IsAutoIdentifiedFootnote { get { return string.IsNullOrEmpty(Identifier); } }
        public string Identifier { get; private set; }
        public Body Note { get; private set; }

        public Footnote()
        {
            Identifier = null;
            Note = new Body();
        }

        public Footnote(string identifier)
        {
            Identifier = identifier;
            Note = new Body();
        }

        public override void Accept(IVisitor visitor)
        {
            visitor.StartVisit(this);
            Note.Accept(visitor);
            visitor.EndVisit(this);
        }
    }
}
